package com.qqtech.qquan.circle.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.qquan.circle.model.CircleBase;
import com.qqtech.qquan.circle.model.CircleBaseQuery;
import com.qqtech.qquan.circle.model.CircleBaseVo;

public interface CircleBaseDao extends BaseDao<CircleBase> {

	/**
	 * 查询我的圈子列表(我创建及我加入的)【按发布话题的时间倒序】
	 * @param userId
	 * @return
	 */
	List<CircleBaseVo> queryMyOrderlyCircles(Integer userId);
	
	/**
	 * 后台查询 -分页
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<CircleBaseVo> queryPageListAdmin(CircleBaseQuery query, Pageable pageable);

	/**
	 * 后台查询记录数
	 * @param query
	 * @return
	 */
	public int queryCountAdmin(CircleBaseQuery query);
}
